
CONFIG += mobility
MOBILITY += multimedia
MOBILITY += sensors
MOBILITY += location
CONFIG += qt plugin
QT += declarative

#INCLUDEPATH += ./QAugmentedReality
#DEPENDPATH += ./QAugmentedReality

INCLUDEPATH += $$PWD/include
DEPENDPATH += $$PWD/include

#addFiles.sources = \epoc32\release\$(PLATFORM)\$(CFG)\QAugmentedReality.dll
#addFiles.sources = ./QAugmentedReality/QAugmentedReality.dll
#addFiles.path = \sys\bin
#DEPLOYMENT += addFiles

HEADERS += \
    qdll_global.h \
    qnativecamera.h \
    videosurface.h \
    qaugmentedrealitycamera.h \
    accelerometerinfo.h \
    compassinfo.h \
    qaugmentedrealitycameraitem.h \
    qaugmentedrealitycameramodel.h \
    qaugmentedrealitycameradelegate.h


simulator {
    message(Library QAugmentedReality for Simulator)
    LIBS += -lQAugmentedReality

    CONFIG(debug, debug|release) { #Debug
        message(Library QAugmentedReality for Simulator Debug)
        LIBS += -L$$PWD/simulator/debug/
        PRE_TARGETDEPS += $$PWD/simulator/debug/libQAugmentedReality.a
    } else { # Release
        message(Library QAugmentedReality for Simulator Release)
        LIBS += -L$$PWD/simulator/release/
        PRE_TARGETDEPS += $$PWD/simulator/release/libQAugmentedReality.a
    }
}


#unix:!macx:!symbian:LIBS += -L$$PWD/QAugmentedReality/ -lQAugmentedReality
#unix:!macx:!symbian:PRE_TARGETDEPS += $$PWD/QAugmentedReality/libQAugmentedReality.a


symbian {
    message(Library QAugmentedReality for Symbian)
    #TARGET.EPOCSTACKSIZE = 0x14000
    #TARGET.EPOCHEAPSIZE  = 0x20000 0x8000000

    TARGET.CAPABILITY += UserEnvironment
    TARGET.CAPABILITY += Location
    TARGET.CAPABILITY += NetworkServices
    TARGET.CAPABILITY += ReadUserData

    lib_exports = \
         "./QAugmentedReality/symbian/QAugmentedReality.lib /epoc32/release/armv5/urel/QAugmentedReality.lib" \
         "./QAugmentedReality/symbian/QAugmentedReality.lib /epoc32/release/armv5/udeb/QAugmentedReality.lib"
    BLD_INF_RULES.prj_exports += lib_exports
    LIBS += -lQAugmentedReality.lib
}

symbian: {
        MMP_RULES += "OPTION gcce -march=armv6"
        MMP_RULES += "OPTION gcce -mfpu=vfp"
        MMP_RULES += "OPTION gcce -mfloat-abi=softfp"
        MMP_RULES += "OPTION gcce -marm"
}
